/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 30318
 * Date: 2023-11-14
 * Time: 16:00
 */
public class TestReference {
    public static void main(String[] args){
        int x=2;
        TestReference tr = new TestReference();
        System.out.print(x);
        tr.change(x);
        System.out.print(x);
    }
    public void change(int num){
        num = num + 1;
    }
}
